/*
 *	Copyright © 2013 Changsha Shishuo Network Technology Co., Ltd. All rights reserved.
 *	长沙市师说网络科技有限公司 版权所有
 *	http://www.shishuo.com
 */

package com.hlingsoft.cms.dao;

import com.hlingsoft.cms.entity.CommentMessage;
import com.hlingsoft.cms.entity.LikesMessage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 达人申请
 * 
 * @author Zhangjiale
 * 
 */

@Repository
	public interface LikesMessageDao {



	/**
	 * 添加评论消息
	 * 
	 * @return Integer
	 */
	public long addLikesMessage(LikesMessage likesMessage);

	/**
	 * 赞我的消息
	 * @param toId
	 * @param offset
	 * @param rows
	 * @return
	 */
    public List<LikesMessage> getLikesMessageByToId(@Param("toId") long toId,@Param("offset") int offset,@Param("rows")int rows);

	/**
	 * 活动的点赞消息
	 * @param newsId
	 * @return
	 */
	public List<LikesMessage> getLikesMessageByNewsId(@Param("newsId") long newsId);


	/**
	 * 删除消息
	 * @param id
	 * @return
	 */
	public int deleteLikesMessage(@Param("id") long id);


	public List<LikesMessage> getLikesMessageByAppUserIdWithNone(@Param("appUserId") long appUserId);

	public int updateLikesMessage(LikesMessage likesMessage);


}
